<div class="user_leftbor user_left_height">
  <div class="user_leftpad">
    
    <tpshop sql="select * from `__PREFIX__article_cat` where cat_id=9 order by sort_order asc" key="k2" item='v2'>
      <div class="user_nav user_nav_on">
        <div class="user_navtop"><a href="javascript:void(0)">{$v2.cat_name} <span class="shouqi"><i class="icon-shouqi"></i></span><span class="zhankai"><i class="icon-zhankai"></i></span></a></div>
        <ul>
          <tpshop sql="select * from `__PREFIX__article` where cat_id = $v2[cat_id] and is_open=1  order by sort asc,article_id desc" key="k3" item='v3'>
            <li><a href="{:U('Home/Article/detail',array('article_id'=>$v3[article_id]))}"><i class="icon-sanjiaoxing-right"></i>{$v3.title}</a></li>
          </tpshop>
        </ul>
      </div>
    </tpshop>
    
    <tpshop sql="select * from `__PREFIX__article_cat` where cat_id=10 order by sort_order asc" key="k2" item='v2'>
      <div class="user_nav user_nav_on">
        <div class="user_navtop"><a href="javascript:void(0)">{$v2.cat_name} <span class="shouqi"><i class="icon-shouqi"></i></span><span class="zhankai"><i class="icon-zhankai"></i></span></a></div>
        <ul>
          <tpshop sql="select * from `__PREFIX__article` where cat_id = $v2[cat_id] and is_open=1  order by sort asc,article_id desc" key="k3" item='v3'>
            <li><a href="{:U('Home/Article/detail',array('article_id'=>$v3[article_id]))}"><i class="icon-sanjiaoxing-right"></i>{$v3.title}</a></li>
          </tpshop>
        </ul>
      </div>
    </tpshop>
    
    <tpshop sql="select * from `__PREFIX__article_cat` where cat_id=11 order by sort_order asc" key="k2" item='v2'>
      <div class="user_nav user_nav_on">
        <div class="user_navtop"><a href="javascript:void(0)">{$v2.cat_name} <span class="shouqi"><i class="icon-shouqi"></i></span><span class="zhankai"><i class="icon-zhankai"></i></span></a></div>
        <ul>
          <tpshop sql="select * from `__PREFIX__article_cat` where parent_id = $v2[cat_id] order by sort_order asc,cat_id asc" key="k3" item='v3'>
            <li><a href="{:U('Home/Article/articleList',array('cat_id'=>$v3[cat_id]))}"><i class="icon-sanjiaoxing-right"></i>{$v3.cat_name}</a></li>
          </tpshop>
        </ul>
      </div>
    </tpshop>
    
  </div><!--user_leftpad-->
</div>

<script>
$(document).ready(function(){
	$(".user_navtop").click(function(){
		$(this).parent(".user_nav").toggleClass("user_nav_on");
	});
});
</script>